export const parseJSONArray = (str: any) => {
    try {
        return JSON.parse(str + "");
    } catch (e) {
        return [];
    }
};
/**
 * 返回json对象
 * @param  param ( String/Object)
 */
export const parseJSON = (param: any) => {
    if (param) {
        if (typeof param == "string") {
            return JSON.parse(param);
        }
        return JSON.parse(JSON.stringify(param));
    }
    return {};
};
